#include "../include/CSCourse.h"
#include "../include/CSStudent.h"
#include "../include/Student.h"
using namespace std;

CSCourse::CSCourse(std::string name, int grade, int semester) :
	Course(name, grade, semester,"CS") {

}
CSCourse::~CSCourse() {
	regStudents.erase(regStudents.begin(), regStudents.end());
}
void CSCourse::reg(Student &s) {
	if (cur_sem >= semester) {
		if (s.getSem() == semester && typeid(s) == typeid(CSStudent)) {
			if(s.isSucc())
			regStudents.push_back(&s);


		}
	}
}
